<html>
<head>
<meta charset="utf-8"></meta>
<title>BLight</title>
<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
<body>
		<div class="class" name="BLight">
<h1>BLight</h1>
<p>继承自<a href="BNode.html">BNode</a></p>
			<p id="resume"><a href="#desc">详细</a></p><h2>public</h2>
<div id="public">
<h3>enum Type</h3>
				<table class="enum">
					<tr><td>Type_Point</td><td>desc</td></tr>
					<tr><td>Type_Spot</td><td>desc</td></tr>
					<tr><td>Type_Direct</td><td>desc</td></tr>
					<tr><td>Type_Max</td><td>desc</td></tr>
				</table>
			</div>
<h2>public</h2>
<table id="public">
<tr><td align="right"/><td><a href="#BLight(Type)">BLight</a>(Type = Type_Point);</td></tr>
<tr><td align="right"/><td><a href="#BLight(const BString&,Type)">BLight</a>(const BString&amp; name, Type = Type_Point);</td></tr>
<tr><td align="right"/><td><a href="#~BLight()">~BLight</a>();</td></tr>
<tr><td align="right">void </td><td><a href="#setType(Type)">setType</a>(Type type);</td></tr>
<tr><td align="right">Type </td><td><a href="#type() const">type</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setAmbient(BByte, BByte, BByte,BByte)">setAmbient</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
<tr><td align="right">void </td><td><a href="#setAmbient(const BColor&)">setAmbient</a>(const BColor&amp; ambient);</td></tr>
<tr><td align="right">const BColor&amp; </td><td><a href="#ambient() const">ambient</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setDiffuse(BByte, BByte, BByte,BByte)">setDiffuse</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
<tr><td align="right">void </td><td><a href="#setDiffuse(const BColor&)">setDiffuse</a>(const BColor&amp; diffuse);</td></tr>
<tr><td align="right">const BColor&amp; </td><td><a href="#diffuse() const">diffuse</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setSpecular(BByte, BByte, BByte,BByte)">setSpecular</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
<tr><td align="right">void </td><td><a href="#setSpecular(const BColor&)">setSpecular</a>(const BColor&amp; specular);</td></tr>
<tr><td align="right">const BColor&amp; </td><td><a href="#specular() const">specular</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setAttenuation(float)">setAttenuation</a>(float attenuation);</td></tr>
<tr><td align="right">float </td><td><a href="#attenuation() const">attenuation</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setAttenuation2(float)">setAttenuation2</a>(float attenuation2);</td></tr>
<tr><td align="right">float </td><td><a href="#attenuation2() const">attenuation2</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setCutoff(float)">setCutoff</a>(float cutoff);</td></tr>
<tr><td align="right">float </td><td><a href="#cutoff() const">cutoff</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setExponent(float)">setExponent</a>(float exponent);</td></tr>
<tr><td align="right">float </td><td><a href="#exponent() const">exponent</a>() const;</td></tr>
<tr><td align="right">void </td><td><a href="#setDirection(BReal, BReal, BReal)">setDirection</a>(BReal x, BReal y, BReal z);</td></tr>
<tr><td align="right">void </td><td><a href="#setDirection(const BVector&)">setDirection</a>(const BVector&amp; direction);</td></tr>
<tr><td align="right">const BVector&amp; </td><td><a href="#direction() const">direction</a>() const;</td></tr>
			</table>
<div id="desc">
<h2>详细介绍：</h2>
			</div>
<h2 id="docs">成员文档：</h2>
<div id="BLight(Type)">
<h3>BLight(Type = Type_Point);</h3>
			</div>
<div id="BLight(const BString&,Type)">
<h3>BLight(const BString&amp; name, Type = Type_Point);</h3>
			</div>
<div id="~BLight()">
<h3>~BLight();</h3>
			</div>
<div id="setType(Type)">
<h3>void setType(Type type);</h3>
			</div>
<div id="type() const">
<h3>Type type() const;</h3>
			</div>
<div id="setAmbient(BByte, BByte, BByte,BByte)">
<h3>void setAmbient(BByte r, BByte g, BByte b, BByte a = 255);</h3>
			</div>
<div id="setAmbient(const BColor&)">
<h3>void setAmbient(const BColor&amp; ambient);</h3>
			</div>
<div id="ambient() const">
<h3>const BColor&amp; ambient() const;</h3>
			</div>
<div id="setDiffuse(BByte, BByte, BByte,BByte)">
<h3>void setDiffuse(BByte r, BByte g, BByte b, BByte a = 255);</h3>
			</div>
<div id="setDiffuse(const BColor&)">
<h3>void setDiffuse(const BColor&amp; diffuse);</h3>
			</div>
<div id="diffuse() const">
<h3>const BColor&amp; diffuse() const;</h3>
			</div>
<div id="setSpecular(BByte, BByte, BByte,BByte)">
<h3>void setSpecular(BByte r, BByte g, BByte b, BByte a = 255);</h3>
			</div>
<div id="setSpecular(const BColor&)">
<h3>void setSpecular(const BColor&amp; specular);</h3>
			</div>
<div id="specular() const">
<h3>const BColor&amp; specular() const;</h3>
			</div>
<div id="setAttenuation(float)">
<h3>void setAttenuation(float attenuation);</h3>
			</div>
<div id="attenuation() const">
<h3>float attenuation() const;</h3>
			</div>
<div id="setAttenuation2(float)">
<h3>void setAttenuation2(float attenuation2);</h3>
			</div>
<div id="attenuation2() const">
<h3>float attenuation2() const;</h3>
			</div>
<div id="setCutoff(float)">
<h3>void setCutoff(float cutoff);</h3>
			</div>
<div id="cutoff() const">
<h3>float cutoff() const;</h3>
			</div>
<div id="setExponent(float)">
<h3>void setExponent(float exponent);</h3>
			</div>
<div id="exponent() const">
<h3>float exponent() const;</h3>
			</div>
<div id="setDirection(BReal, BReal, BReal)">
<h3>void setDirection(BReal x, BReal y, BReal z);</h3>
			</div>
<div id="setDirection(const BVector&)">
<h3>void setDirection(const BVector&amp; direction);</h3>
			</div>
<div id="direction() const">
<h3>const BVector&amp; direction() const;</h3>
			</div>
		</div>
	</body>
</html>